process {
    withName: BIOBAMBAM_BAMMERGE {
        ext.args = {[
            "md5=1",
            "md5filename=${meta.id}.md5",
            "index=1",
            "indexfilename=${meta.id}.bam.bai"
        ].join(" ").trim()}
    }
}
